package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryWorksPictures;
import com.muyu.danmo.mapper.DanmoGalleryWorksPicturesMapper;
import com.muyu.danmo.service.IDanmoGalleryWorksPicturesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 画廊作品图片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryWorksPicturesServiceImpl implements IDanmoGalleryWorksPicturesService
{
    @Autowired
    private DanmoGalleryWorksPicturesMapper danmoGalleryWorksPicturesMapper;

    /**
     * 查询画廊作品图片
     *
     * @param id 画廊作品图片主键
     * @return 画廊作品图片
     */
    @Override
    public DanmoGalleryWorksPictures selectDanmoGalleryWorksPicturesById(Long id)
    {
        return danmoGalleryWorksPicturesMapper.selectDanmoGalleryWorksPicturesById(id);
    }

    /**
     * 查询画廊作品图片列表
     *
     * @param danmoGalleryWorksPictures 画廊作品图片
     * @return 画廊作品图片
     */
    @Override
    public List<DanmoGalleryWorksPictures> selectDanmoGalleryWorksPicturesList(DanmoGalleryWorksPictures danmoGalleryWorksPictures)
    {
        return danmoGalleryWorksPicturesMapper.selectDanmoGalleryWorksPicturesList(danmoGalleryWorksPictures);
    }

    /**
     * 新增画廊作品图片
     *
     * @param danmoGalleryWorksPictures 画廊作品图片
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryWorksPictures(DanmoGalleryWorksPictures danmoGalleryWorksPictures)
    {
        return danmoGalleryWorksPicturesMapper.insertDanmoGalleryWorksPictures(danmoGalleryWorksPictures);
    }

    /**
     * 修改画廊作品图片
     *
     * @param danmoGalleryWorksPictures 画廊作品图片
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryWorksPictures(DanmoGalleryWorksPictures danmoGalleryWorksPictures)
    {
        return danmoGalleryWorksPicturesMapper.updateDanmoGalleryWorksPictures(danmoGalleryWorksPictures);
    }

    /**
     * 批量删除画廊作品图片
     *
     * @param ids 需要删除的画廊作品图片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryWorksPicturesByIds(Long[] ids)
    {
        return danmoGalleryWorksPicturesMapper.deleteDanmoGalleryWorksPicturesByIds(ids);
    }

    /**
     * 删除画廊作品图片信息
     *
     * @param id 画廊作品图片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryWorksPicturesById(Long id)
    {
        return danmoGalleryWorksPicturesMapper.deleteDanmoGalleryWorksPicturesById(id);
    }
}
